package com.briup.jz.service;

import com.briup.jz.bean.Address;
import com.briup.jz.utils.CustomerException;

import java.util.List;

/**
 * @ProjectName: jz
 * @Author: xjs
 * @Description: 地址业务
 * @Date: 2020/6/14 12:37
 */
public interface IAddressService {

    //增加地址 修改地址
    void saveOrUpdate(Address address);

    //删除地址
    void deleteById(Long id) throws CustomerException;

    //查看用户所有地址
    List<Address> findAllByUserid(Long id);
}
